package com.micai.springboot.mapper;

import com.github.pagehelper.Page;
import com.micai.springboot.base.SuperMapper;
import com.micai.springboot.dto.MenuDto;
import com.micai.springboot.entity.MenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by 赵新国 on 2018/1/31.
 */
public interface MenuMapper extends SuperMapper<MenuEntity> {

    Page<MenuEntity> findByPage(Map<String, Object> columnMap);

    List<MenuEntity> getLeftMenuByIds(@Param("name") String name, @Param("parentId") Long parentId, @Param("id") Long id);

    List<Map<String, Object>> getMenusByRoleId(Long id);

    List<MenuEntity> loadUserMenus(Map<String,Object> map);
}
